/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.mobbuzz.messaging;

/**
 *
 * @author penyihirkecil
 */
public class RequestStream {
    public static StringBuffer sendRssRequest(String type, String title, String url){
		StringBuffer result = new StringBuffer();
		result.append("<rss type='"+type+"'>");
        //result.append("<username>"+title+"</username>");
		result.append("<title>"+title+"</title>");
		result.append("<url>"+url+"</url>");
		result.append("</rss>");
		return result;
	}


    public static StringBuffer sendNews(String url, String link, String title, String description, String date){
		StringBuffer news = new StringBuffer();
		news.append("<news>");
		news.append("<url>"+url+"</url>");
		news.append("<link>"+link+"</link>");
		news.append("<title>"+title+"</title>");
		news.append("<description>"+description+"</description>");
		news.append("<date>"+date+"</date>");
		news.append("</news>");

        return news;
	}

}
